package com.sskj.common.enums;

import lombok.Getter;

@Getter
public enum ApiResponseCodeEnum {
    SUCCESS(0, "SUCCESS"),
    LOGIC_EXCEPTION(3001, "业务异常"),
    REQUEST_PARAMS_VALIDATE_FAILED(3004, "参数校验失败"),
    TOKEN_INVALID_OR_EXPIRED(4001, "Token不存在或已失效"),
    ERROR_EXCEPTION(5005, "服务异常");

    private final Integer code;

    private final String name;

    ApiResponseCodeEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }
}
